#include "lock_guard.hpp"
#include <iostream>

namespace rocket 
{
lock_guard::lock_guard(pthread_mutex_t *lock)
:_lock(lock)
{
    
    pthread_mutex_lock(_lock);  
}
lock_guard::~lock_guard()
{
    pthread_mutex_unlock(_lock);  

}

}